PerfectLibCameraKit Classes

  • The class performs face analysis.

    Initialize a PFCameraKit object with +[PFCameraKit createWithModelPath:completion:]. The object created will not open camera device and rendering view, external camera source is required. Use -sendCameraBuffer: to input camera frames. Receive quality check results from PFCameraKitDelegate. The relaxed level is applied by default when the object is initialized.

    Note

    the kCVPixelBufferPixelFormatTypeKey must be specified as kCVPixelFormatType_420YpCbCr8BiPlanarFullRange when setting AVCaptureVideoDataOutput.videoSettings.
    Declaration

    Objective-C

    
    @interface PFCameraKit : NSObject
  • The results of skin analysis. Face width should be between 0.55 × frame width and 1.0 × frame width.

    Declaration

    Objective-C

    
    @interface PFCameraKitQualityCheck : NSObject
  • Immutable CameraKit face check parameters created from PFCameraKitParameterBuilder.

    Declaration

    Objective-C

    
    @interface PFCameraKitParameter : NSObject
  • Builder object for configuring CameraKit face check parameters.

    Unspecified values are filled from the preset values of the current parameter’s currentLevel when -build is called.

    Declaration

    Objective-C

    
    @interface PFCameraKitParameterBuilder : NSObject